import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findCurrentMonthRevenueList(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/income/month',
        method: 'post',
        params
    })
}

export function findEverydayRevenueList(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/income/day',
        method: 'post',
        params
    })
}

export function findProductSaleVolumeList(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/sales/spu',
        method: 'post',
        params
    })
}

export function exportProductSalesData(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/export/sales/spu',
        method: 'post',
        responseType: 'blob',
        params
    })
}

// 菜品分类报表查询
export function findProductCategorySaleVolumeList(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/sales/category',
        method: 'post',
        params
    })
}

export function findOrderListByPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/findOrderListByPage',
        method: 'post',
        params
    })
}

export function findOrderDetail(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/findOrderDetail',
        method: 'post',
        params
    })
}

export function exportOrderList(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/exportOrderList',
        method: 'post',
        responseType: 'blob',
        params
    })
}

export function getProductStatisticsData(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/statistics/spu',
        method: 'post',
        params
    })
}

export function exportProductStatisticsData(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/export/statistics/spu',
        method: 'post',
        responseType: 'blob',
        params
    })
}

export function getOrderDetailData(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/order/detail',
        method: 'post',
        params
    })
}

export function exportOrderDetailData(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/report/temp/export/order/detail',
        method: 'post',
        responseType: 'blob',
        params
    })
}